package com.myblog.mapper;

import com.myblog.model.ArticleLikes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface LikeOfArticleMapper {

    void insert(ArticleLikes likeOfArticle);

    @Select("select count(*) from article_likes_record where articleId = #{articleId}")
    Integer selectNumByArticleId(long articleId);
}
